<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ tag body-content="empty" %>
<%@ tag dynamic-attributes="tagAttrs" %>
<%@ attribute name="optionsList" type="java.util.List" required="true" rtexprvalue="true" %>
<%@ attribute name="name" required="true" %>
<%@ attribute name="size" required="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>

<select name="${name}" size="${size}"
   <c:forEach var="attrEntry" items="${tagAttrs}">
    ${attrEntry.key}="${attrEntry.value}"
   </c:forEach>
>
<c:forEach var="option" items="${optionsList}">
    <option value="${option}">${option}</option>
</c:forEach>
</select>